<template>
    <div>
        <van-nav-bar :title="title" left-text="返回" left-arrow @click-left="goBack"/>
    </div>

</template>
<script>
    import { NavBar } from 'vant';

    export default {
        name:"v-header",
        data(){
            return {
                title:"",
            };
        },
        computed: {
        },
        methods: {
            goBack() {
                this.$router.back(-1);
            }
        },
        components: {
            [NavBar.name]:NavBar,
        }
    }
</script>
